% 宏包导入
\usepackage{graphicx}
\usepackage{syntonly}
\usepackage[margin=1in]{geometry}
\usepackage{framed}
\usepackage{xcolor}
\usepackage{type1cm}
\usepackage{pythonhighlight}
\usepackage[
    colorlinks,
    linkcolor=blue,
    anchorcolor=black,
    citecolor=black
]{hyperref}
\usepackage{amsmath}


% 设置格式
\pagestyle{plain}

% 定义命令和环境
\newenvironment{brief}{
    \colorlet{shadecolor}{blue!10}
    \begin{shaded}
}{
    \end{shaded}
}

\newenvironment{extract}{
    \colorlet{shadecolor}{red!20}
    \begin{shaded}
}{
    \end{shaded}
}

\newenvironment{highlight}{
    \colorlet{shadecolor}{yellow!40}
    \begin{shaded}
}{
    \end{shaded}
}

\newcommand{\yl}[1]{\colorbox{yellow!40}{#1}}